﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace TulingMember.Core
{
    public class SaleOrder
    {
        public long Id { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
        public DateTime CreatedAt { get; set; } = DateTime.Now;
        public long CustomerId { get; set; }
        public string Remark { get; set; }

        public virtual Customer Customer { get; set; }
        public virtual ObservableCollection<SaleOrderDetail> Details { get; set; } = new ObservableCollection<SaleOrderDetail>();
    }
}